/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 74646
 * Date: 2022-02-20
 * Time: 21:06
 */
public class Test {
    public static void main(String[] args) {
        MyLinkedList linkedList = new MyLinkedList();
        linkedList.addAtIndex(1,0);
        linkedList.disPlay();
        System.out.println(linkedList.get(0));


//        linkedList.addAtHead(1);
//        linkedList.disPlay();
//        linkedList.addAtTail(3);
//        linkedList.disPlay();
//        linkedList.addAtIndex(1,2);   //链表变为1-> 2-> 3
//        linkedList.disPlay();
//        System.out.println(linkedList.get(1));
//        // linkedList.disPlay();
//        linkedList.deleteAtIndex(1);  //现在链表是1-> 3
//        linkedList.disPlay();
//        System.out.println(linkedList.get(1));
//        // linkedList.disPlay();
    }
}
